import request from '@/utils/request'

// 创建项目阶段事项
export function createProjectPlanEvent(data) {
  return request({
    url: '/live/project-plan-event/create',
    method: 'post',
    data: data
  })
}

// 更新项目阶段事项
export function updateProjectPlanEvent(data) {
  return request({
    url: '/live/project-plan-event/update',
    method: 'put',
    data: data
  })
}

// 删除项目阶段事项
export function deleteProjectPlanEvent(id) {
  return request({
    url: '/live/project-plan-event/delete?id=' + id,
    method: 'delete'
  })
}

// 获得项目阶段事项
export function getProjectPlanEvent(id) {
  return request({
    url: '/live/project-plan-event/get?id=' + id,
    method: 'get'
  })
}

// 获得项目阶段事项分页
export function getProjectPlanEventPage(query) {
  return request({
    url: '/live/project-plan-event/page',
    method: 'get',
    params: query
  })
}

// 导出项目阶段事项 Excel
export function exportProjectPlanEventExcel(query) {
  return request({
    url: '/live/project-plan-event/export-excel',
    method: 'get',
    params: query,
    responseType: 'blob'
  })
}
